Optimal. Leaf size=181 \[ \frac {2 a^3 (10 A+11 B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}+\frac {2 a^3 (230 A+301 B) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}+\frac {2 a^2 (10 A+7 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 a A (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{7 d \cos ^{\frac {7}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.34, antiderivative size = 181, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {3054, 3059,
2850} \begin {gather*} \frac {2 a^3 (10 A+11 B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}+\frac {2 a^3 (230 A+301 B) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}+\frac {2 a^2 (10 A+7 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{35 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 a A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2850
Rule 3054
Rule 3059
Rubi steps
\begin {align*} \int \frac {(a+a \cos (c+d x))^{5/2} (A+B \cos (c+d x))}{\cos ^{\frac {9}{2}}(c+d x)} \, dx &=\frac {2 a A (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{7 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {2}{7} \int \frac {(a+a \cos (c+d x))^{3/2} \left (\frac {1}{2} a (10 A+7 B)+\frac {1}{2} a (2 A+7 B) \cos (c+d x)\right )}{\cos ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 a^2 (10 A+7 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 a A (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{7 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {4}{35} \int \frac {\sqrt {a+a \cos (c+d x)} \left (\frac {7}{4} a^2 (10 A+11 B)+\frac {1}{4} a^2 (30 A+49 B) \cos (c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a^3 (10 A+11 B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}+\frac {2 a^2 (10 A+7 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 a A (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{7 d \cos ^{\frac {7}{2}}(c+d x)}+\frac {1}{105} \left (a^2 (230 A+301 B)\right ) \int \frac {\sqrt {a+a \cos (c+d x)}}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a^3 (10 A+11 B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}+\frac {2 a^3 (230 A+301 B) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}+\frac {2 a^2 (10 A+7 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 a A (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{7 d \cos ^{\frac {7}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.65, size = 104, normalized size = 0.57 \begin {gather*} \frac {a^2 \sqrt {a (1+\cos (c+d x))} (290 A+196 B+(930 A+987 B) \cos (c+d x)+2 (115 A+98 B) \cos (2 (c+d x))+230 A \cos (3 (c+d x))+301 B \cos (3 (c+d x))) \tan \left (\frac {1}{2} (c+d x)\right )}{210 d \cos ^{\frac {7}{2}}(c+d x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.28, size = 111, normalized size = 0.61
method | result | size |
default | \(-\frac {2 a^{2} \left (-1+\cos \left (d x +c \right )\right ) \left (230 A \left (\cos ^{3}\left (d x +c \right )\right )+301 B \left (\cos ^{3}\left (d x +c \right )\right )+115 A \left (\cos ^{2}\left (d x +c \right )\right )+98 B \left (\cos ^{2}\left (d x +c \right )\right )+60 A \cos \left (d x +c \right )+21 B \cos \left (d x +c \right )+15 A \right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}}{105 d \sin \left (d x +c \right ) \cos \left (d x +c \right )^{\frac {7}{2}}}\) | \(111\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 396 vs.
\(2 (157) = 314\).
time = 0.56, size = 396, normalized size = 2.19 \begin {gather*} \frac {8 \, {\left (\frac {7 \, {\left (\frac {15 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {35 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {28 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {8 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}\right )} B}{{\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}}} + \frac {5 \, {\left (\frac {21 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {56 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {63 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {36 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {8 \, \sqrt {2} a^{\frac {5}{2}} \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}}\right )} A {\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )}^{2}}{{\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {9}{2}} {\left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {9}{2}} {\left (\frac {2 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {\sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + 1\right )}}\right )}}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 114, normalized size = 0.63 \begin {gather*} \frac {2 \, {\left ({\left (230 \, A + 301 \, B\right )} a^{2} \cos \left (d x + c\right )^{3} + {\left (115 \, A + 98 \, B\right )} a^{2} \cos \left (d x + c\right )^{2} + 3 \, {\left (20 \, A + 7 \, B\right )} a^{2} \cos \left (d x + c\right ) + 15 \, A a^{2}\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{105 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.86, size = 551, normalized size = 3.04 \begin {gather*} \frac {\sqrt {a+a\,\left (\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}\right )}\,\left (\frac {a^2\,\left (230\,A+301\,B\right )\,2{}\mathrm {i}}{105\,d}-\frac {a^2\,{\mathrm {e}}^{c\,3{}\mathrm {i}+d\,x\,3{}\mathrm {i}}\,\left (10\,A+17\,B\right )\,2{}\mathrm {i}}{3\,d}+\frac {a^2\,{\mathrm {e}}^{c\,4{}\mathrm {i}+d\,x\,4{}\mathrm {i}}\,\left (10\,A+17\,B\right )\,2{}\mathrm {i}}{3\,d}+\frac {a^2\,{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,\left (100\,A+113\,B\right )\,2{}\mathrm {i}}{15\,d}-\frac {a^2\,{\mathrm {e}}^{c\,5{}\mathrm {i}+d\,x\,5{}\mathrm {i}}\,\left (100\,A+113\,B\right )\,2{}\mathrm {i}}{15\,d}-\frac {a^2\,{\mathrm {e}}^{c\,7{}\mathrm {i}+d\,x\,7{}\mathrm {i}}\,\left (230\,A+301\,B\right )\,2{}\mathrm {i}}{105\,d}-\frac {B\,a^2\,{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,2{}\mathrm {i}}{d}+\frac {B\,a^2\,{\mathrm {e}}^{c\,6{}\mathrm {i}+d\,x\,6{}\mathrm {i}}\,2{}\mathrm {i}}{d}\right )}{\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}+{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}\,\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}+3\,{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}+3\,{\mathrm {e}}^{c\,3{}\mathrm {i}+d\,x\,3{}\mathrm {i}}\,\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}+3\,{\mathrm {e}}^{c\,4{}\mathrm {i}+d\,x\,4{}\mathrm {i}}\,\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}+3\,{\mathrm {e}}^{c\,5{}\mathrm {i}+d\,x\,5{}\mathrm {i}}\,\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}+{\mathrm {e}}^{c\,6{}\mathrm {i}+d\,x\,6{}\mathrm {i}}\,\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}+{\mathrm {e}}^{c\,7{}\mathrm {i}+d\,x\,7{}\mathrm {i}}\,\sqrt {\frac {{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}}{2}+\frac {{\mathrm {e}}^{c\,1{}\mathrm {i}+d\,x\,1{}\mathrm {i}}}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________